import tkinter as tk

root = tk.Tk()
var = tk.BooleanVar()
checkbutton = tk.Checkbutton(root, text="选项", variable=var)
checkbutton.pack()
root.mainloop()